import { createSelector, createFeatureSelector } from '@ngrx/store';
import { ModalBoxState } from './modal-box.reducer';

const selectModalBoxState = (state: ModalBoxState) => state;
export const getModalBox = createFeatureSelector<ModalBoxState>('modalBox');
export const getModalBoxVisible = createSelector(selectModalBoxState, (state: ModalBoxState) => state.visible);
export const getModalBoxType = createSelector(selectModalBoxState, (state: ModalBoxState) => state.modalType);
